package cn.bdqn.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.bdqn.dao.InvitationMapper;
import cn.bdqn.entity.Invitation;
import cn.bdqn.service.InvitationService;
import cn.bdqn.util.Page;

@Service
public class InvitationServiceImpl implements InvitationService {

	@Resource
	private InvitationMapper invitationMapper;
	
	@Override
	public List<Invitation> getInvitationPageList(String title,Page page) {
		return invitationMapper.getInvitationPageList(title, (page.getPageIndex()-1)*page.getPageSize(),page.getPageSize());
	}

	@Override
	public List<Invitation> getInvitationList() {
		return invitationMapper.getInvitationList();
	}

	@Override
	public List<Invitation> getInvitationListByTitle(String title) {
		return invitationMapper.getInvitationListByTitle(title);
	}

	@Override
	public Integer delInvitation(Integer id) {
		return invitationMapper.delInvitation(id);
	}

}
